package com.lanou3g.code0408.setterandegetter;

/**
 * Created by dllo on 18/4/8.
 */
/*
以后记住:
1.类中的所有属性 都是private的
2.每个属性提供一对 setxxx和getxxx的方法
  我们叫它set/get 方法
3. set 方法用来为这个属性进行复制
4.get方法用来获取这个 属性的值
 */
public class Girl {
    private int age;
    private String name;
    private float weight;

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public float getWeight() {
        return weight;
    }
 //mac :commonde +n
 //   windows:alt+insert
    public void setWeight(float weight) {
        this.weight = weight;
    }
}
